//
// phpDirExists(dirPath)
//
// Returns true if the directory exists. Requires SmartPill PHP plugin.
//
Let (
	[
		$dirPath = dirPath;

		phpCode = "error_reporting(0); //E_ALL & ~E_NOTICE);¶
		¶
		echo is_dir(fm_evaluate('$dirPath'));¶
	  ";

		result = PHP_Execute(phpCode)
	] ;
	result
)